package com.datang.litejvm.cmd;

import com.datang.litejvm.constant.ConstantPool;

public abstract class OneOperandCmd extends ByteCodeCommand {
    private int operand;

    public OneOperandCmd(ConstantPool pool, String opCode) {
        super(pool,opCode);
    }

    public int getOperand() {
        return this.operand;
    }

    public void setOperand(int oprand1) {
        this.operand = oprand1;

    }

    public int getLength() {
        return 2;
    }

}
